package com.ezgo.erc.service;

import java.util.List;
import java.util.Map;

import com.ezgo.erc.entity.Sysuser;
import com.ezgo.erc.master.exception.DaoException;
import com.ezgo.erc.master.exception.ServiceException;
import com.ezgo.erc.master.utils.Page;

public interface SysuserService {
	/**
	 * 
	 * TODO(保存用户信息)
	 *
	 * @param user
	 * @return boolean
	 * @throws DaoException
	 */
	public boolean saveSysuser(Sysuser user) throws ServiceException;

	/**
	 * 
	 * TODO(更新用户信息)
	 *
	 * @param user
	 * @return boolean
	 * @throws DaoException
	 */
	public boolean updateSysuser(Sysuser user) throws ServiceException;

	/**
	 * 
	 * TODO(修改用户密码)
	 *
	 * @param user
	 * @return boolean
	 * @throws DaoException
	 */
	public boolean modifyUserPwd(Map<String, Object> map);

	/**
	 * 
	 * TODO(删除用户信息)
	 *
	 * @param user
	 * @return boolean
	 * @throws DaoException
	 */
	public boolean deleteSysuser(Long id) throws ServiceException;

	/**
	 * 
	 * TODO(获取用户信息-分页)
	 *
	 * @param page
	 * @param map
	 * @return Page<Sysuser>
	 */
	public Page<Sysuser> getSysuserPage(Page<Sysuser> page, Map<String, Object> map) throws ServiceException;

	/**
	 * 
	 * TODO(获取用户信息)
	 *
	 * @param map
	 * @return Sysuser
	 */
	public Sysuser getSysuser(Long id);

	/**
	 * 
	 * TODO(获取用户信息)
	 *
	 * @param map
	 * @return Sysuser
	 */
	public List<Sysuser> getSysuserList(Map<String, Object> map);
}
